package com.aynu.webshop.web.dao;

import java.util.List;

import com.aynu.webshop.core.generic.GenericDao;
import com.aynu.webshop.web.model.Category;

public interface CategoryMapper extends GenericDao<Category, Integer>{
    int deleteByPrimaryKey(Integer catId);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer catId);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
    
    List<Category> findAll();
    
    List<Category> findAllParent();
    
    List<Category> findAllChild(Integer cid);
    
}